//
//  Request.h
//  HengHuaSupervision
//
//  Created by XD-XY on 3/26/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "Response.h"
#import "MyFile.h"

@interface Request : NSObject


-(void) request:(NSString *)interfaceName keyValue:(NSDictionary*) data completionHandler:(void (^)(ResponseData* data))completionHandler;

//只支持一次上传一个文件
-(void) uploadFile:(NSString *)interfaceName keyValue:(NSDictionary*) data file:(NSArray*) file progressObserver:(NSObject *)observer completionHandler:(void (^)(ResponseData* data))completionHandler;

//只支持一次下载一个文件
-(void) downloadFile:(NSString *)url fileSavePath:(NSString*) savePath progressObserver:(NSObject *)observer successHandler:(void (^)())successHandler failHandler:(void (^)(NSString* errormsg))failHandler;


@end
